package com.spring.autowiredAnnotation;

import org.springframework.beans.factory.annotation.Autowired;

public class Boss1 {
	private Car car;
	private Office office;
	
    @Autowired    
    public void setCar(Car car) {     
        this.car = car;     
    }     
      
    @Autowired    
    public void setOffice(Office office) {     
        this.office = office;     
    }    
    
	@Override
	public String toString(){
		return "Car: " + car + ", Office: " + office;
	}
}
